package com.health.auth.form;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;

/**
 * 用户登录对象
 *
 * @author health
 */
public class PatientLoginBody
{
    /**
     * 用户名
     */
    @Email(message = "请输入正确的邮件格式")
    @NotNull(message = "请输入账号")
    private String email;

    /**
     * 用户密码
     */
    @NotNull(message = "密码不能为空")
    private String password;

    public @Email(message = "请输入正确的邮件格式") @NotNull(message = "请输入账号") String getEmail() {
        return email;
    }

    public void setEmail(@Email(message = "请输入正确的邮件格式") @NotNull(message = "请输入账号") String email) {
        this.email = email;
    }

    public @NotNull(message = "密码不能为空") String getPassword() {
        return password;
    }

    public void setPassword(@NotNull(message = "密码不能为空") String password) {
        this.password = password;
    }
}
